const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: './index.js',
    mode: 'development',
    plugins: [
        new HtmlWebpackPlugin({
            title: 'editor',
            template: `index.html`,
        }),
    ],
    module: {
        rules: [{
            test: /\.css$/,
            use: ['style-loader', 'css-loader'],
        }],
    },
    devServer: {
        port: 9000,
        allowedHosts: "all",
    }
};
